<template>
  <div class="main">
    <div class="card">
      <header>
        <img src=".././assets/header.jpg">
      </header>
    </div>
    <div class="form">
      <el-form :model="form"
               ref="form1"
               label-width="18%"
               class="demo-ruleForm">
        <el-form-item label="关键字">
          <el-input placeholder="请输入内容"
                    v-model="form.keys">
            <el-button slot="append"
                       @click="handleSearch"
                       icon="el-icon-search"></el-button>
          </el-input>
        </el-form-item>
      </el-form>
    </div>
    <!-- 卡片列表 -->
    <div class="detail">
      <div style="display:flex;justify-content:space-between">
      </div>
      <van-empty v-if="dataList.length == 0"
                 description="未找到结果" />
      <!-- 卡片--上拉刷新 -->
      <div class="card"
           v-for='item in dataList'
           :key="item.id">
        <div class="card_content">
          <div class="title">
            <span>{{ item.name }}</span>
          </div>
          <div class="name">
            <span>沟通过程编号</span>
            <span>{{ item.name }}</span>
          </div>
          <hr style="margin:0" />
          <div class="name">
            <span>公司名称</span>
            <span>{{ item.name }}</span>
          </div>
        </div>
      </div>
      <!-- 卡片end -->
    </div>
  </div>
</template>

<script>
import axios from 'axios'
import { addObj3 } from '@/api/faq1'

export default {
  data() {
    return {
      dataList: [{ id: 1, name: 'asd' }],
      form: {}
    }
  },
  computed: {},
  methods: {
    handleSearch() {
      console.log('搜索===', this.form)
    }
  }
}
</script>

<style scoped>
.main {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  display: block;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  overflow-y: scroll;
  box-sizing: border-box;
  /* border: 1px solid #0f0; */
}
header img {
  display: block;
  width: 100%;
}
.form {
  margin: 20px 10px;
}
.top {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: #f8fcff;
  /* border: 1px solid #0f0; */
}
.search {
  /* position: fixed;
  top: 1.2rem; */
  width: 100%;
  z-index: 1000;
  padding: 0.3rem 0.2rem;
  /* border: 1px solid #0f0; */
}
.searchBottom {
  display: flex;
  justify-content: center;
  margin: 0.2rem 0;
}
.detail {
  width: 90%;
  margin: 1rem auto 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.detail2 {
  width: 90%;
  margin: 6rem auto 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* 1 */
.detail span,
.detail2 span {
  font-size: 16px;
}
.detail .card,
.detail2 .card {
  width: 100%;
  /* height: 6.2rem; */
  border: 1px solid #eee;
  box-shadow: 2px 2px 5px #eee;
  margin: 0.2rem 0;
  border-radius: 10px;
  background: #fff;
  padding: 0.1rem 0;
  display: flex;
  justify-content: center;
}
.card_content {
  width: 95%;
}
.detail .xiangxi,
.detail2 .xiangxi {
  color: #888;
  font-weight: 800;
  font-size: 16px;
}
.detail .card .title,
.detail2 .card .title {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem;
  margin: 0.2rem 0;
}

.detail .card .title span:nth-child(1),
.detail2 .card .title span:nth-child(1) {
  font-weight: 600;
}
.detail .card .title span:nth-child(2),
.detail2 .card .title span:nth-child(2) {
  font-size: 12px;
}

.detail .card .name,
.detail2 .card .name {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0.2rem;
}
.detail .card .name span:nth-child(1),
.detail2 .card .name span:nth-child(1) {
  color: #818181;
  font-size: 12px;
}
.detail .card .name span:nth-child(2),
.detail2 .card .name span:nth-child(2) {
  color: #000;
  font-size: 12px;
  font-weight: 700;
}
.detail .card .edit,
.detail2 .card .edit {
  line-height: 0.6rem;
  float: right;
}
.detail .card .edit .btn,
.detail2 .card .edit .btn {
  margin: 0 0.1rem;
  border-radius: 5px;
}
.content {
  /* display: flex; */
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 0.1rem 0 0 0;
}
.content span {
  /* font-size: 16px; */
  display: inline-block;
}
/* .form .van-cell {
  line-height: 1rem !important;
} */
.form >>> .van-field__label,
.search >>> .van-field__label {
  display: flex;
  align-items: center !important;
}
.el-select-dropdown__item {
  width: 5rem;
}
.form >>> .el-select-dropdown__item {
  z-index: 9999 !important;
}
</style>